import java.util.Scanner;
public class Third{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	System.out.println("Please enter this purchase price:");
	Double price =sc.nextDouble();
	System.out.println("My dear,is it free?");
	String a =sc.next();
	if ("yes".equals(a)){
	System.out.println("the price is:"+price);
	}else{
	System.out.println("the price is:"+ (price+20));
	}
	}
}